package cn.com.xyc.service;

import java.util.List;
import java.util.Map;

import org.apache.poi.hssf.usermodel.HSSFWorkbook;

import cn.com.xyc.pojo.Admin;
import cn.com.xyc.pojo.CostLive;
import cn.com.xyc.pojo.WordBook;

public interface MyLifeService {
	/**
	 * 字典表
	 * @param type
	 * @return
	 * @throws Exception
	 */
	public List<WordBook> selectWordBookListByType(String type)throws Exception;
	
	/**
	 * 保存今日消费信息
	 * @param data
	 * @param user
	 * @return
	 * @throws Exception
	 */
	public boolean saveTodayCostInfo(String data,Admin user)throws Exception;
	
	/**
	 * 消费查询列表
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<CostLive> selectCostLivesList(Map<String,String> params)throws Exception;
	
	/**
	 * 按月份查询消费信息
	 * @param params
	 * @return
	 * @throws Exception
	 */
	public List<CostLive> selectCostLivesListOfSelect2(Map<String,String> params)throws Exception;
	
	/**
	 * 根据实体类实体消费信息
	 * @param costLive
	 * @return
	 * @throws Exception
	 */
	public List<CostLive> selectCostLivesList(CostLive costLive)throws Exception;
	
	public Map<String,String> selectCostCountInfos()throws Exception;//取当前年、当前月、当前周、当前日统计信息
	
	public void exportSelectCostInfos(String ids,HSSFWorkbook workbook)throws Exception;//导出选中的消费信息
	
	public void exportCostInfosByExample(HSSFWorkbook workbook,List<CostLive> costLive);//根据条件导出消费信息
}
